﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

public partial class School_Report_test : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {

    }
    /// <summary>
    /// 测试定性班级缓存  统考
    /// </summary>
    /// <param name="sender"></param>
    /// <param name="e"></param>
    protected void Button1_Click(object sender, EventArgs e)
    {
        
//班级
//381   382  383
//年级  9 
//统考 142
//校考 61
        //Hashtable ht = new Hashtable();
        //ht.Add("ClassID",1);
        //ht.Add("ExamID", 1);
        //ht.Add("SchoolMark", CommonScore.GetSchoolMark);
        //ht.Add("TableName", CommonScore.GetGradeStoreTable(1));
        //Reports.QueryExamCatch(1, Reports.CATCH_KINDSET_CLASS).CheckCatch(ht);

        Hashtable ht = new Hashtable();
        ht.Add("ClassID", 383);
        ht.Add("ExamID", 142);
        ht.Add("SchoolMark", CommonScore.GetSchoolMark);
        ht.Add("TableName", CommonScore.GetGradeStoreTable(9));
        Reports.QueryExamCatch(1, Reports.CATCH_KINDSET_CLASS).CheckCatch(ht);
    }
    protected void Button2_Click(object sender, EventArgs e)
    {
        //班级
        //381   382  383
        //年级  9 
        //统考 142
        //校考 61
        //Hashtable ht = new Hashtable();
        //ht.Add("ClassID", 1);
        //ht.Add("ExamID", 1);
        //ht.Add("SchoolMark", CommonScore.GetSchoolMark);
        //Reports.QueryExamCatch(0, Reports.CATCH_KINDSET_CLASS).CheckCatch(ht);
        Hashtable ht = new Hashtable();
        ht.Add("ClassID", 383);
        ht.Add("ExamID", 61);
        ht.Add("SchoolMark", CommonScore.GetSchoolMark);
        Reports.QueryExamCatch(0, Reports.CATCH_KINDSET_CLASS).CheckCatch(ht);
    }
    protected void Button3_Click(object sender, EventArgs e)
    {
        //班级
        //381   382  383
        //年级  9 
        //统考 142
        //校考 61
        //Hashtable ht = new Hashtable();
        //ht.Add("Grade", 1);
        //ht.Add("ExamID", 1);
        //ht.Add("SchoolMark", CommonScore.GetSchoolMark);
        //ht.Add("TableName", CommonScore.GetGradeStoreTable(1));
        //Reports.QueryExamCatch(1, Reports.CATCH_KINDSET_GRADE).CheckCatch(ht);
        Hashtable ht = new Hashtable();
        ht.Add("Grade", 9);
        ht.Add("ExamID", 142);
        ht.Add("SchoolMark", CommonScore.GetSchoolMark);
        ht.Add("TableName", CommonScore.GetGradeStoreTable(9));
        Reports.QueryExamCatch(1, Reports.CATCH_KINDSET_GRADE).CheckCatch(ht);
    }
    protected void Button4_Click(object sender, EventArgs e)
    {
        //班级
        //381   382  383
        //年级  9 
        //统考 142
        //校考 61
        //Hashtable ht = new Hashtable();
        //ht.Add("ClassID", 1);
        //ht.Add("ExamID", 1);
        //ht.Add("SchoolMark", CommonScore.GetSchoolMark);
        //ht.Add("TableName", CommonScore.GetGradeStoreTable(1));
        //Reports.QueryExamCatch(1, Reports.CATCH_DISTRIBUTIONSET_CLASS).CheckCatch(ht);

        Hashtable ht = new Hashtable();
        ht.Add("ClassID", 383);
        ht.Add("ExamID", 142);
        ht.Add("SchoolMark", CommonScore.GetSchoolMark);
        ht.Add("TableName", CommonScore.GetGradeStoreTable(9));
        Reports.QueryExamCatch(1, Reports.CATCH_DISTRIBUTIONSET_CLASS).CheckCatch(ht);
    }
    protected void Button5_Click(object sender, EventArgs e)
    {
        //班级
        //381   382  383
        //年级  9 
        //统考 142
        //校考 61
        //Hashtable ht = new Hashtable();
        //ht.Add("ClassID", 1);
        //ht.Add("ExamID", 1);
        //ht.Add("SchoolMark", CommonScore.GetSchoolMark);
        //Reports.QueryExamCatch(0, Reports.CATCH_DISTRIBUTIONSET_CLASS).CheckCatch(ht);

        Hashtable ht = new Hashtable();
        ht.Add("ClassID", 382);
        ht.Add("ExamID", 61);
        ht.Add("SchoolMark", CommonScore.GetSchoolMark);
        Reports.QueryExamCatch(0, Reports.CATCH_DISTRIBUTIONSET_CLASS).CheckCatch(ht);
    }
    protected void Button6_Click(object sender, EventArgs e)
    {
        //班级
        //381   382  383
        //年级  9 
        //统考 142
        //校考 61
        //Hashtable ht = new Hashtable();
        //ht.Add("Grade", 1);
        //ht.Add("ExamID", 1);
        //ht.Add("SchoolMark", CommonScore.GetSchoolMark);
        //ht.Add("TableName", CommonScore.GetGradeStoreTable(1));
        //Reports.QueryExamCatch(1, Reports.CATCH_DISTRIBUTIONSET_GRADE).CheckCatch(ht);

        Hashtable ht = new Hashtable();
        ht.Add("Grade", 9);
        ht.Add("ExamID", 142);
        ht.Add("SchoolMark", CommonScore.GetSchoolMark);
        ht.Add("TableName", CommonScore.GetGradeStoreTable(9));
        Reports.QueryExamCatch(1, Reports.CATCH_DISTRIBUTIONSET_GRADE).CheckCatch(ht);
    }
    protected void Button7_Click(object sender, EventArgs e)
    {
        //班级
        //381   382  383
        //年级  9 
        //统考 142
        //校考 61

        //Hashtable ht = new Hashtable();
        //ht.Add("ClassID", 1);
        //ht.Add("ExamID", 1);
        //ht.Add("SchoolMark", CommonScore.GetSchoolMark);
        //ht.Add("TableName", CommonScore.GetGradeStoreTable(1));
        //Reports.QueryExamCatch(1, Reports.CATCH_SECTIONSET_CLASS).CheckCatch(ht);

        Hashtable ht = new Hashtable();
        ht.Add("ClassID", 383);
        ht.Add("ExamID", 142);
        ht.Add("SchoolMark", CommonScore.GetSchoolMark);
        ht.Add("TableName", CommonScore.GetGradeStoreTable(9));
        Reports.QueryExamCatch(1, Reports.CATCH_SECTIONSET_CLASS).CheckCatch(ht);
    }
    protected void Button8_Click(object sender, EventArgs e)
    {
        //班级
        //381   382  383
        //年级  9 
        //统考 142
        //校考 61

        //Hashtable ht = new Hashtable();
        //ht.Add("ClassID", 1);
        //ht.Add("ExamID", 1);
        //ht.Add("SchoolMark", CommonScore.GetSchoolMark);
        //Reports.QueryExamCatch(0, Reports.CATCH_SECTIONSET_CLASS).CheckCatch(ht);

        Hashtable ht = new Hashtable();
        ht.Add("ClassID", 383);
        ht.Add("ExamID", 61);
        ht.Add("SchoolMark", CommonScore.GetSchoolMark);
        Reports.QueryExamCatch(0, Reports.CATCH_SECTIONSET_CLASS).CheckCatch(ht);
    }
    protected void Button9_Click(object sender, EventArgs e)
    {
        //班级
        //381   382  383
        //年级  9 
        //统考 142
        //校考 61

        //Hashtable ht = new Hashtable();
        //ht.Add("Grade", 1);
        //ht.Add("ExamID", 1);
        //ht.Add("SchoolMark", CommonScore.GetSchoolMark);
        //ht.Add("TableName", CommonScore.GetGradeStoreTable(1));
        //Reports.QueryExamCatch(1, Reports.CATCH_SECTIONSET_GRADE).CheckCatch(ht);

        Hashtable ht = new Hashtable();
        ht.Add("Grade", 9);
        ht.Add("ExamID", 142);
        ht.Add("SchoolMark", CommonScore.GetSchoolMark);
        ht.Add("TableName", CommonScore.GetGradeStoreTable(9));
        Reports.QueryExamCatch(1, Reports.CATCH_SECTIONSET_GRADE).CheckCatch(ht);
    }
    protected void Button10_Click(object sender, EventArgs e)
    {
        //班级
        //381   382  383
        //年级  9 
        //统考 142
        //校考 61
        //Hashtable ht = new Hashtable();
        //ht.Add("ClassID", 1);
        //ht.Add("ExamID", 1);
        //ht.Add("SchoolMark", CommonScore.GetSchoolMark);
        //ht.Add("TableName", CommonScore.GetGradeStoreTable(1));
        //Reports.QueryExamCatch(1, Reports.CATCH_SCOREPOINTSET_CLASS).CheckCatch(ht);

        Hashtable ht = new Hashtable();
        ht.Add("ClassID", 383);
        ht.Add("ExamID", 142);
        ht.Add("SchoolMark", CommonScore.GetSchoolMark);
        ht.Add("TableName", CommonScore.GetGradeStoreTable(9));
        Reports.QueryExamCatch(1, Reports.CATCH_SCOREPOINTSET_CLASS).CheckCatch(ht);
    }
    protected void Button11_Click(object sender, EventArgs e)
    {
        //班级
        //381   382  383
        //年级  9 
        //统考 142
        //校考 61
        Hashtable ht = new Hashtable();
        ht.Add("Grade", 9);
        ht.Add("ExamID", 142);
        ht.Add("SchoolMark", CommonScore.GetSchoolMark);
        ht.Add("TableName", CommonScore.GetGradeStoreTable(9));
        Reports.QueryExamCatch(1, Reports.CATCH_SCOREPOINTSET_GRADE).CheckCatch(ht);
    }
    protected void Button12_Click(object sender, EventArgs e)
    {
        Container<Meqs.Logic.Interface.IGradeScoreEducationLogic>.Instance.ImportScoreFromSchool(1,CommonScore.GetSchoolMark,1,CommonScore.GetGradeStoreTable(1),0);
    }
}
